<template>
  <div>
    <c-title :hide="false" text="代理商改价"></c-title>
    <div>
    <div class="list flex-row justify-between">
        <div class="list-item" v-for="(item,index) in list" :key="index">
            <div class="item-img">
                <img :src="item.thumb" style="width: 100%; height: 100%;" />
            </div>
            <div class="title">{{item.title}}</div>
            <div class="sales">{{item.virtual_sales}}</div>
            <div class="box">
                <div class="price">{{item.price}}</div>
                <div class="btn" @click="amendprice(item)">改价</div>
                <div style="width: 20px; height: 20px;"  @click="priceList(item.id)">
                    <img src="https://shops.cg500.com/static/news-icon.png" style="width: 100%; height: 100%;" />
                </div>
            </div>
        </div>
    </div>
</div>
  </div>
  
</template>

<script>
import agentgoodsListController from "./agentgoodsListController";

export default agentgoodsListController;
</script>


<style lang="scss" rel="stylesheet/scss" scoped>
@import "../common/common.css";
.list {
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    // justify-content: flex-start;
    align-items: center;
    margin-top: 8px;
    padding: 0 14px;

}
.list-item {
    width: 48%;
    height: 270px;
    background-color: #ffffff;
    border-radius: 10px;
    margin: 7px 0;
}
.item-img {
    width: 90%;
    height: 190px;
    border-radius: 15px;
    margin: auto;
}
.title {
    width: 100%;
    font-weight: 600;
    font-size: 14px;
    margin-left: 5px;
    text-align: left;
}
.sales {
    font-size: 12px;
    color: #c7c5c5;
    margin-left: 5px;
    text-align: left;
}
.price {
    font-size: 16px;
    font-weight: 500;
    color: #e84141;
    margin-left: 5px;
}
.btn {
    width: 50px;
    height: 20px;
    border: 1px solid #e84141;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #e84141;
}
.box {
    width: 93%;
    height: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
</style>